import request from '@/utils/request'
const serviceName = 'Device'
//  列表
export function queryDeviceTypes(data) {
  return request({
    url: serviceName + '/DeviceType/QueryDeviceTypes',
    method: 'post',
    data
  })
}
//  详情
export function getDeviceType(data) {
  return request({
    url: serviceName + '/DeviceType/GetDeviceType',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveDeviceType(data) {
  return request({
    url: serviceName + '/DeviceType/SaveDeviceType',
    method: 'post',
    data
  })
}
//  删除
export function deleteDeviceTypes(data) {
  return request({
    url: serviceName + '/DeviceType/DeleteDeviceTypes',
    method: 'post',
    data
  })
}

export default {
  queryDeviceTypes,
  getDeviceType,
  saveDeviceType,
  deleteDeviceTypes
}
